import request from '@/utils/request'

export default {

  // 添加npc子任务
  addSideTask(data) {
    return request({
      url: '/serviceucenter/sidetask/addSideTask',
      method: 'post',
      data
    })
  },
  // 获取npc子任务
  getAllSideTask(id) {
    return request({
      url: '/serviceucenter/sidetask/getAllSideTask?npcId='+id,
      method: 'get'
    })
  },
  // 删除npc子任务
  deleteSideTask(id) {
    return request({
      url: '/serviceucenter/sidetask/deleteSideTask/'+id,
      method: 'delete'
    })
  }

}
